Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CQL spatial capability #102

Merged
merged 14 commits into from
Mar 1, 2022
Merged

Conversation

dr-jts
Copy link
Collaborator

@dr-jts dr-jts commented Mar 1, 2022

This PR adds CQL support for geometry literals and spatial predicates.

Geometry Literals

POINT (1 2)
LINESTRING (0 0, 1 1)
POLYGON ((0 0, 0 9, 9 0, 0 0))
POLYGON ((0 0, 0 9, 9 0, 0 0),(1 1, 1 8, 8 1, 1 1))
MULTIPOINT ((0 0), (0 9))
MULTILINESTRING ((0 0, 1 1),(1 1, 2 2))
MULTIPOLYGON (((1 4, 4 1, 1 1, 1 4)), ((1 9, 4 9, 1 6, 1 9)))
GEOMETRYCOLLECTION (POLYGON((1 4, 4 1, 1 1, 1 4)), LINESTRING (3 3, 5 5), POINT (1 5))
ENVELOPE (1, 2, 3, 4)

Spatial Predicates

  • INTERSECTS - tests whether two geometries intersect
  • DISJOINT - tests whether two geometries have no points in common
  • CONTAINS - tests whether a geometry contains another
  • WITHIN - tests whether a geometry is within another
  • EQUALS - tests whether two geometries are topologically equal
  • CROSSES - tests whether the geometries cross
  • OVERLAPS - tests whether the geometries overlap
  • TOUCHES - tests whether the geometries touch
  • DWITHIN - tests whether two geometries are within a given distance

it also adds the filter-crs=SRID query parameter.

@dr-jts dr-jts added the enhancement New feature or request label Mar 1, 2022
@dr-jts dr-jts self-assigned this Mar 1, 2022
@dr-jts dr-jts changed the title Add CQL spatial predicates and literals Add CQL spatial capability Mar 1, 2022
@dr-jts dr-jts merged commit 8805e76 into CrunchyData:master Mar 1, 2022
@dr-jts dr-jts deleted the add-cql-spatial branch March 1, 2022 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant